Skip to content

Conversation

@mircealungu
Copy link
Member

Summary

  • Fix LLM generating examples like "Bolig_forhold_" instead of standalone words
  • Add prompt requirement for standalone word placement (not embedded in compounds)
  • Add validation function word_appears_standalone() to detect compound-only occurrences
  • Add tools to find and fix existing bad examples in database

Test plan

  • Verified 9 existing bad examples found by dry run
  • Run python -m tools.fix_underscore_examples --fix on server to delete bad examples and regenerate
  • Verify new examples use standalone words

🤖 Generated with Claude Code

The LLM was generating examples like "Bolig_forhold_" instead of using
"forhold" as a standalone word. This made examples unsuitable for
language learning exercises.

Changes:
- Update v3 prompt to require standalone word placement
- Add word_appears_standalone() validation function
- Add tools to find and fix existing bad examples

Run on server: python -m tools.fix_underscore_examples --fix

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link

ArchLens - No architecturally relevant changes to the existing views

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants